package com.example.hehecat.yuejian1.mvp.contract;

import com.example.hehecat.yuejian1.mvp.model.bean.ClubBean;
import com.example.hehecat.yuejian1.mvp.model.bean.ClubLessonBean;
import com.example.hehecat.yuejian1.mvp.model.bean.SuccessBean;

import java.util.List;

import retrofit2.Callback;
import rx.Subscriber;

public interface ClubInfoContract {
    interface Model{
        void getClub(int club_id, Subscriber<ClubBean> subscriber);
        void getLesson(int club_id, Subscriber<List<ClubLessonBean>> subscriber);
        void collectClub(int club_id, int user_id, Callback<SuccessBean> callback);
        void isClubCollect(int club_id, int user_id,Callback<SuccessBean> callback);
    }

    interface View {
        void showMsg(String msg);
        void setCollect();
        void setUnCollect();
        void updateAdapterData(List<ClubLessonBean> data);
        void collectClub();
        void isClubCollect();


    }

    interface Presenter {
        void collectClub(int user_id,int club_id);
        void isCollected(int club_id, int user_id);
        void updateAdapterData(int club_id);
    }
}
